//
//  TestImageViewController.m
//  IOSBase
//
//  Created by chenliang on 14-8-13.
//  Copyright (c) 2014年 chenliang. All rights reserved.
//

#import "GestureImageViewController.h"

@interface GestureImageViewController ()

@end

@implementation GestureImageViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    _scrollView = [[UIScrollView alloc]initWithFrame:CGRectMake(0, 0, KWIDTH, KHEIGHT)];
    _scrollView.delegate = self;
    _scrollView.pagingEnabled = YES;
    _scrollView.userInteractionEnabled = YES;
    _scrollView.showsHorizontalScrollIndicator = NO;
    _scrollView.showsVerticalScrollIndicator = NO;
    [self.view addSubview:_scrollView];
    
    [_scrollView setContentSize:CGSizeMake(KWIDTH, KHEIGHT)];
    
    _zoomScrollView = [[MRZoomScrollView alloc]init];
    CGRect frame = self.scrollView.frame;
    frame.origin.x = 0;
    frame.origin.y = 0;
    _zoomScrollView.frame = frame;
    _zoomScrollView.imageView.image = _image;
    [self.scrollView addSubview:_zoomScrollView];
}


@end
